{% extends "movies/default_template.html" %}

{% block title %}
	NMJ - All movies
{% endblock %}

{% block custom_menu %}
<script>
	function toggle(type){
		display = $(".type_" + type).css("display");
		if (display == "none"){
			$(".type_" + type).css("visibility", "visible");
			$(".type_" + type).css("display", "inline-block");
		}else{
			$(".type_" + type).css("visibility", "hidden");
			$(".type_" + type).css("display", "none");
		} 
		
	}
</script>

<input type=checkbox checked onclick="toggle(3);" />Movies 
<input type=checkbox checked onclick="toggle(0);" />Series
{% endblock %}


{% block content %}

	{% if all_movies %}
		{% for movie in all_movies %}
			{% include "movies/single_movie.html" %}
		{% endfor %}
	{% else %}
		<p>No movies are available.</p>
	{% endif %}

{% endblock %}